projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8718e92
)
places sidebar: Fix the sort function
author
Matthias Clasen
<mclasen@redhat.com>
Fri, 5 Dec 2014 03:26:14 +0000
(22:26 -0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Fri, 5 Dec 2014 03:26:14 +0000
(22:26 -0500)
When returning 1 for a pair (a,b), a sort function must
return -1 for the pair (b,a), otherwise things can go
badly.
https://bugzilla.gnome.org/show_bug.cgi?id=739729
gtk/gtkplacessidebar.c
patch
|
blob
|
history
diff --git
a/gtk/gtkplacessidebar.c
b/gtk/gtkplacessidebar.c
index 80426a33cc5806b418da4748b80b6980505208ea..48364d8a9f93cd8f3016cee31c0c124215e759ed 100644
(file)
--- a/
gtk/gtkplacessidebar.c
+++ b/
gtk/gtkplacessidebar.c
@@
-3815,6
+3815,10
@@
places_sidebar_sort_func (GtkTreeModel *model,
{
retval = 1;
}
+ else if (place_type_b == PLACES_CONNECT_TO_SERVER)
+ {
+ retval = -1;
+ }
return retval;
}